<%@codepage="65001"%>
<%session.codepage="65001"%>
<!-- #include virtual=/inc/dbConn.asp -->
<!-- #include virtual=/inc/function.asp -->
<!-- #include virtual=/inc/action.header.inc.asp -->

<%
	'## 파라미터 변수 선언부
	prdNm			= Request("prdNm")
	workUid		= Request("workUid")
	remarks		= Request("remarks")
	planNm		= Request("planNm")
	compCd		= Request("compCd")
	source			= Request("source")
	afterDeal		= Request("afterDeal")
	workDt			= Request("workDt")
	outDt			= Request("outDt")
	qty				= Request("qty")
	flag				= Request("flag")
	lotSeq			= Request("lotSeq")
	
	issueId		= Request.Cookies("S_uid")

	If lotSeq = "" Then lotSeq = 0 End If 
	If qty = "" Then qty = 0 End If 

	prdNm		= Replace(prdNm,"'","''")
	planNm	= Replace(planNm,"'","''")
	remarks		= Replace(remarks,"'","''")

		SQLTitle = "-- ■■■■ 가공(2팀) 정보 관리 저장 ■■■■"
	SQL = "exec spExtraOrder " & compCd & ", '" & prdNm & "', '" & workUid & "', '" & workDt & "', '" & outDt & "', '" & planNm & "', '" & source & "', '" & afterDeal & "', '" & issueId & "', " & qty & ", '" & flag & "', '" & remarks & "', " & lotSeq
	
	If xMode="debug" Then 
		Call showDebug(SQLTitle,SQL) 
	End If 

'Response.write SQL
'Response.end
	DbCon.Execute SQL

	Call rsWithXML("Save OK!")
%>